files=dir('ptv*.mat');

for ii=1:length(files)
     load(files(ii).name);
     bwthold.file{ii}=ptv.file;
     bwthold.bwt_raw{ii,:}=ptv.bwthold;
     bwthold.avg_bwt_raw(ii)=mean(ptv.bwthold);
     bwthold.SE_bwt_raw(ii)=std(ptv.bwthold)./sqrt(239);
     bwthold.bwt{ii,:}=ptv.bwthold.*255;
     bwthold.avg_bwt(ii)=mean(ptv.bwthold)*255;
     bwthold.SE_bwt(ii)=(std(ptv.bwthold)./sqrt(239))*255;
end

cruise='USACE_labtests';

save([cruise,'_bwt'],'-struct','bwthold');